<html>

<meta http-equiv="content-type" content="application/msword"> 
<meta http-equiv="charset" content="UTF-8"> 
<!--显示中文-->


<script type="text/javascript" src="../jquery-1.7.2.js"></script>

<script type="text/javascript">
    $(document).ready(function(){
        var wrd = new ActiveXObject("Word.Application");
        wrd.visible = true;
        alert("您的"+wrd.Application.Caption+"安装路径为:\n"+wrd.Application.Path+"\n版本号是："+wrd.Application.version+"\n注册使用者是："+wrd.Application.UserName);
        wrd.Documents.Open("http://localhost/file/test.doc");
        wrd.Application.Activate();
        wrd=null;
        
        alert("..............");
        
        //测试按钮
        $("#testButton3").click(function(){
            var url = "http://localhost/http/httptest.php";
            //$("#framediv").location = url;
            
            //alert(document.getElementsByName("framediv")[0].getAttribute("src"));
            document.getElementsByName("framediv")[0].src = "http://localhost/file/test.doc";
        });
        
    });





</script>
<?php

?>

<hr>
<p>html 页面</p>

<input id="testButton3" type="button" value="iframe" />

<iframe id="framediv" src = "" name="framediv" width="800" height="600"></iframe>




</html>